package com.leadingsoft.pwxk.converter;

import org.springframework.stereotype.Component;

import com.leadingsoft.common.converter.AbstractConverter;
import com.leadingsoft.pwxk.dto.FuelDto;
import com.leadingsoft.pwxk.model.Fuel;

/**
 * @author: lipan 2018年5月15日
 * @description: ()
 * 
 */

@Component
public class FuelConverter extends AbstractConverter<Fuel, FuelDto> {

	@Override
	protected FuelDto toDtoActual(Fuel model) {

		FuelDto dto = new FuelDto();
		dto.setId(model.getId());
		dto.setDataid(model.getDataid());
		dto.setAsh(model.getAsh());
		dto.setAverage(model.getAverage());
		dto.setCalorific(model.getCalorific());
		dto.setCalorificunit(model.getCalorificunit());
		dto.setFuelname(model.getFuelname());
		dto.setIssecretname(model.getIssecretname());
		dto.setMercury(model.getMercury());
		dto.setOneamount(model.getOneamount());
		dto.setOneyear(model.getOneyear());
		dto.setOthercomp(model.getOthercomp());
		dto.setSpercent(model.getSpercent());
		dto.setSulfur(model.getSulfur());
		dto.setThreeamount(model.getThreeamount());
		dto.setThreeyear(model.getThreeyear());
		dto.setTwoamount(model.getTwoamount());
		dto.setTwoyear(model.getTwoyear());
		dto.setVolatiles(model.getVolatiles());
		dto.setYearmax(model.getYearmax());
		dto.setYearmaxunit(model.getYearmaxunit());

		return dto;
	}

	@Override
	public void copyProperties(Fuel model, FuelDto dto) {

	}

}
